package com.newgrand.annexserver.beans;

import com.baomidou.mybatisplus.enums.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 附件表
 * </p>
 *
 * @author minyang
 * @since 2019-09-04
 */
public class Attachment extends Model<Attachment> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "phid", type = IdType.AUTO)
    private Long phid;
    /**
     * 文件GUID
     */
    private String asrFid;
    /**
     * 文件顺序
     */
    private Integer asrSeq;
    /**
     * 文件大小
     */
    private Integer asrSize;
    /**
     * 文件内容
     */
    private byte[] asrData;
    /**
     * 文件数量
     */
    private Integer asrCount;
    /**
     * 文件类型 1:图片 0：非图片
     */
    private Integer asrType;
    private String sessionid;
    private Date createtime;
    private Date updatetime;
    /**
     * 状态
     */
    private Integer state;


    public Long getPhid() {
        return phid;
    }

    public void setPhid(Long phid) {
        this.phid = phid;
    }

    public String getAsrFid() {
        return asrFid;
    }

    public void setAsrFid(String asrFid) {
        this.asrFid = asrFid;
    }

    public Integer getAsrSeq() {
        return asrSeq;
    }

    public void setAsrSeq(Integer asrSeq) {
        this.asrSeq = asrSeq;
    }

    public Integer getAsrSize() {
        return asrSize;
    }

    public void setAsrSize(Integer asrSize) {
        this.asrSize = asrSize;
    }

    public byte[] getAsrData() {
        return asrData;
    }

    public void setAsrData(byte[] asrData) {
        this.asrData = asrData;
    }

    public Integer getAsrCount() {
        return asrCount;
    }

    public void setAsrCount(Integer asrCount) {
        this.asrCount = asrCount;
    }

    public Integer getAsrType() {
        return asrType;
    }

    public void setAsrType(Integer asrType) {
        this.asrType = asrType;
    }

    public String getSessionid() {
        return sessionid;
    }

    public void setSessionid(String sessionid) {
        this.sessionid = sessionid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    protected Serializable pkVal() {
        return this.phid;
    }

    @Override
    public String toString() {
        return "Attachment{" +
                ", phid=" + phid +
                ", asrFid=" + asrFid +
                ", asrSeq=" + asrSeq +
                ", asrSize=" + asrSize +
                ", asrData=" + asrData +
                ", asrCount=" + asrCount +
                ", asrType=" + asrType +
                ", sessionid=" + sessionid +
                ", createtime=" + createtime +
                ", updatetime=" + updatetime +
                ", state=" + state +
                "}";
    }
}
